# Copyright (C) Nicola Bizzoca   2006/2007  <hannibal_smith@users.sourceforge.net>
# Copyright (C) Simone Economo   2006/2007  <ekoes@users.sourceforge.net>
# 
#    This file is part of Absynth-FTP.
#
#    Absynth-FTP is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 3 of the License, or
#    (at your option) any later version.
#
#    Absynth-FTP is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

import os, sys
import ConfigParser

class Config:
    def __init__(self):
        self.infile = 'absynth.ini'
        self.option = {}
        self.config = ConfigParser.ConfigParser()
        self.infile = open(self.infile)
        self.config.readfp(self.infile)
        self.infile.close()
        
        for item in self.config.items("main"):
            print item
            self.option[item[0]] = item[1]
        
current_path = os.path.realpath(__file__)
basedir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, basedir)
os.chdir(basedir)
WINDOW_TYPE = "AbsynthMain"
ABOUT_DIALOG = "AbsynthAbout"
APP_NAME = "Absynth"
APP_VERSION = "Alpha"
DATA_DIR = basedir+"/data"
GLADE_MAIN_WINDOW = DATA_DIR + "/glade/absynthMain.glade"

MSG_BOX_MESSAGE = "A crash has been detected, execution terminated." \
                  "\n\nPlease send bug-report.txt via email" \
                  " to openweb@netsons.org"
                  
LICENSE = open(basedir + "/COPYING", "r").read()
WIDGET = "gtk2"